getSystemServiceName

open fun getSystemServiceName(@NonNull context: Context, @NonNull serviceClass: Class<out Any>): String(source)

Gets the name of the system-level service that is represented by the specified class.

Return

The service name or null if the class is not a supported system service.

Parameters

context

Context to retrieve service name from.

serviceClass

The class of the desired service.

See also